
<div class="wrap-right pull-right">

<?php 

if (function_exists('dynamic_sidebar') && dynamic_sidebar('widget_right')) : endif; 

if (is_single()){
	if (function_exists('dynamic_sidebar') && dynamic_sidebar('widget_post')) : endif; 
}

else if (is_page()){
	if (function_exists('dynamic_sidebar') && dynamic_sidebar('widget_page')) : endif; 
}

else if (is_home()){
	if (function_exists('dynamic_sidebar') && dynamic_sidebar('widget_sidebar')) : endif; 
}
else {
	if (function_exists('dynamic_sidebar') && dynamic_sidebar('widget_other')) : endif; 
}
?>

<div id="sidebar-fixed">
<?php 
	if (function_exists('dynamic_sidebar') && dynamic_sidebar('widget_right_fixed')) : endif; 
 ?>

</div>


<!-- <?php if(is_home()){
    if( ztmao('ztmao_yqlj') ) { ?>
        <div class="box-moder hot-tag ztmao-lianjie">
	        <h3>友情链接</h3>
	        <span class="span-mark"></span>
			<div class="search-history search-hot">
				<ul>
					<?php wp_list_bookmarks('title_li=&categorize=0&orderby=rand'); ?>
				</ul>
			</div>
		</div>
		<div class="placeholder"></div>
<?php } } ?> -->
</div>